﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrokerBase.Lib.Policy;

namespace broker.duty.PA
{
    class Class3
    {
        public void Calc1(IPolicyPeriodActing ppa, IDutyActing da)
        {
            if (ppa.Period > 0 && ppa.Period % 5 == 0)
            {
                da.Value = ppa.Amount * 0.18;
            }

            
        }

        public void Calc1(IPolicyPeriodActing ppa, IDutyActing da)
        {
            if (ppa.Period==ppa.PolicyActing.Policy.PaymentPeriodLength-1)
            {
                da.Value = ppa.GetDutyTotalValue("稳健型个人账户") + ppa.GetDutyTotalValue("进取型个人账户");
                ppa.IsCurrentFinish = true;
            }
        }
    }
}
